package top.jiangqiang.sentinel.feign.consumer;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * configuration后面配置的类中可以使用@Bean注入对象，也可以直接在对应的类上使用@Configuration注解
 */
@FeignClient(name = "service-provider", fallback = FeignServiceFallback.class, configuration = FeignConfiguration.class)
public interface FeignService {
    @GetMapping(value = "/getPort")
    String getPort();
}

